package cutword;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Hashtable;

import jeasy.analysis.MMAnalyzer;

public class test {

	public static void main(String[] args) throws IOException
	{
		
		String filename="A00-2018.CS";
		InputStreamReader inStreamReader=new InputStreamReader(new FileInputStream(filename),"UTF-8");
		BufferedReader bufreader=new BufferedReader(inStreamReader);
		
		String line=null;
		String[] tmp;
		Hashtable<String,String> citation=new Hashtable<String,String>();
		String key;
		String content;
		
		ArrayList<String> result=new ArrayList<String>();
		
		while((line=bufreader.readLine())!=null)
		{
			result.add(line);
			System.out.println("Hello world"+line);
			tmp=line.split("\t");
			key=tmp[0].substring(0,8);
			content=tmp[2];
			citation.put(key,content);
			bufreader.readLine();
		}
	}
	
}
